﻿
final class File {
  private String path;

  public native File( String path );

  public native boolean delete();

  public native boolean exists();

  //public native String getName();

  public String getPath() {
    return path;
  }

  //public native boolean isDirectory();
  //public native boolean isFile();

  //public native boolean mkdir();
  //public native boolean mkdirs();

  //public native long length();

  //public native File[] listFiles();

  //public native boolean renameTo( File other );

  public native boolean touch();

  public String toString() {
    return "[File: path=" + path + "]";
  }
}
